package com.hzsk.lisence.mapper;

import com.hzsk.lisence.entity.SoftwareEntity;
import com.hzsk.lisence.entity.query.SelectByNameQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SoftwareMapper {

    SoftwareEntity getSoftwareInf(int softwareId);

    Integer saveSoftwareInf(SoftwareEntity softwareEntity);

    Integer getSoftwareId(String softwareName);

    List<SoftwareEntity> getAllSoftware(@Param("operatorUserId")Integer operatorUserId);


    Integer updateSoftwareInf(SoftwareEntity softwareEntity);

    Integer deleteSoftwareInf(@Param("softwareId")Integer softwareId);

    List<SoftwareEntity> getSoftwareInfoSelected(SelectByNameQuery selectByNameQuery);

    List<SoftwareEntity> getSoftwareInfoByName(@Param("name")String name);

    Integer isAccount(@Param("softwareName") String softwareName);



}
